import { Authority } from '../request'

const { post, get } = Authority


// 与摄像头建立连接
export const connectCamera = params => post('/equip/camera/control/v1/connect', params)
// 与摄像头断开连接
export const unConnectCamera = params => post('/equip/camera/control/v1/unConnect', params)

// 发送指令到摄像机
export const sendCmd = params => post('/equip/camera/control/v1/work', params)

// 获取所有照片
export const getAllPhoto= params => get('/record/camera-photo-record/v1/queryList', { params })
export const getTestPhoto= params => get('/record/photo-test/v1/queryList', { params })
export const getFormalPhoto= params => get('/record/camera-photo-record/v1/queryTestList', { params })
// 操作摄像机拍照
export const controlCamera = params => post('/record/photo/v1/work', params)
//获取可调试的摄像机列表
export const getCameraIdList = params => get('/equip/camera-info/v1/queryAllList', {params})
